//
// // 获取资源路径
// [].map.call(document.querySelectorAll("audio"), audio => audio.src || audio.querySelector("source").src);
// // 下载资源，注意需要在同域名下才能自动下载
// ;(function loadMusic(musicList) {
//   const src = musicList.shift();
//   if (src) {
//     const a = document.createElement("a");
//     a.href = src;
//     a.InnerHTML = src;
//     a.download = src.split(/[\\\/]/).pop();
//     document.body.appendChild(a);
//     a.click();
//     setTimeout(() => {
//       loadMusic(musicList)
//     }, 4000 + Math.random() * 2000)
//   }
// })(
//   ["https://pic.ibaotu.com/00/58/08/83M888piCJpF.mp3", "https://pic.ibaotu.com/00/43/65/01q888piCXcm.mp3", "https://pic.ibaotu.com/00/43/81/73S888piCaXA.mp3", "https://pic.ibaotu.com/00/56/53/48R888piCy5g.mp3", "https://pic.ibaotu.com/00/56/62/98X888piCmyI.mp3", "https://pic.ibaotu.com/00/57/79/006888piCM9A.mp3", "https://pic.ibaotu.com/00/61/75/05x888piCTq5.mp3", "https://pic.ibaotu.com/00/22/47/70G888piCAb6.mp3", "https://pic.ibaotu.com/00/22/93/549888piCS8k.mp3", "https://pic.ibaotu.com/00/24/04/50u888piCZ4n.mp3", "https://pic.ibaotu.com/00/36/80/09m888piC5Tx.mp3", "https://pic.ibaotu.com/00/42/07/02w888piCEvu.mp3", "https://pic.ibaotu.com/00/42/12/77S888piCcAn.mp3", "https://pic.ibaotu.com/00/42/13/579888piCnbB.mp3", "https://pic.ibaotu.com/00/43/57/66j888piCAVB.mp3", "https://pic.ibaotu.com/00/43/96/49v888piCXE7.mp3", "https://pic.ibaotu.com/00/50/03/534888piCVWT.mp3", "https://pic.ibaotu.com/00/50/97/97K888piCY7k.mp3", "https://pic.ibaotu.com/00/55/70/03U888piCivm.mp3", "https://pic.ibaotu.com/00/55/72/94H888piCuiy.mp3", "https://pic.ibaotu.com/00/56/01/36C888piCVvx.mp3", "https://pic.ibaotu.com/00/61/77/70Q888piCKsy.mp3", "https://pic.ibaotu.com/00/24/77/64W888piC3cQ.mp3", "https://pic.ibaotu.com/00/39/41/86g888piCmit.mp3", "https://pic.ibaotu.com/00/40/51/72K888piCpcr.mp3", "https://pic.ibaotu.com/00/41/37/98d888piCqGJ.mp3", "https://pic.ibaotu.com/00/42/12/75b888piCShc.mp3", "https://pic.ibaotu.com/00/42/13/888piC5a888piCUjB.mp3", "https://pic.ibaotu.com/00/42/96/569888piCdH3.mp3", "https://pic.ibaotu.com/00/44/28/75Y888piCy9W.mp3", "https://pic.ibaotu.com/00/45/39/86F888piCWxJ.mp3", "https://pic.ibaotu.com/00/45/42/72G888piCM8d.mp3", "https://pic.ibaotu.com/00/56/59/61E888piCmIT.mp3", "https://pic.ibaotu.com/00/58/90/86y888piCftQ.mp3", "https://pic.ibaotu.com/00/60/15/83U888piCgRy.mp3", "https://pic.ibaotu.com/00/24/67/51G888piC9tm.mp3", "https://pic.ibaotu.com/00/24/77/977888piCMhz.mp3", "https://pic.ibaotu.com/00/31/00/53i888piC8Z6.mp3", "https://pic.ibaotu.com/00/36/69/92U888piCbqd.mp3", "https://pic.ibaotu.com/00/40/06/21x888piCyjA.mp3"]
// );
//
// const result = [];
// const input = document.createElement("input");
// input.type = "file";
// input.multiple="multiple";
// document.body.appendChild(input);
// input.click();
// input.onchange = function (ev) {
//   const len = input.files.length;
//   [].forEach.call(input.files, file => {
//     const fr = new FileReader();
//     fr.readAsDataURL(file);
//     fr.onload = function(){
//       //读取完成后，数据保存在对象的result属性中
//       result.push(fr.result);
//       console.log("succ 1")
//       if (result.length === len) console.log(JSON.stringify(result));
//     };
//   });
// };
